/*////////////////////////////////////////////////////////////////*/
/*开关*/
.switch {
    position: absolute;
    display: inline-block;
    width: 40px;
    height: 20px;
    top: 50%;
    left: 95%;
    transform: translate(-50%, -50%);
    z-index: 4;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/*开关滑动块*/
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 110%;
    width: 60%;
    left: 0px;
    bottom: 4px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    box-shadow: 0 0px 15px #2020203d;
    background-color: white;
    background-repeat: no-repeat;
    background-position: center;
}

/*开关动画*/
input:checked + .slider {
    background-color: #2196f3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(70%);
    -ms-transform: translateX(70%);
    transform: translateX(70%);
    background-color: white;
    background-repeat: no-repeat;
    background-position: center;
}

/*开关圆弧*/
.slider.round {
    border-radius: 50px;
}

.slider.round:before {
    border-radius: 50%;
}